<!-- 表格的行 -->
<template>
  <div>
    <div>表格的行</div>
    <el-button @click="addRow">新增一行</el-button>
  </div>
</template>

<script lang="ts" setup>
import { useFormStore } from "@bis/stores/form";
import { editQue } from "../../../utils";

const formStore = useFormStore();

const addRow = () => {
  formStore.selectQuestion.rows.push("行名");
  editQue(formStore.selectQuestion, formStore);
};
</script>
